package com.ruangong.GitClient.Test.YanZhaoWangTest;

import com.ruangong.GitClient.YanZhaoWang.Major;
import com.ruangong.GitClient.YanZhaoWang.YanZhaoWang;

import java.io.IOException;
import java.util.List;

/**
 * 查询某大学某学科招生信息测试
 */

public class Test4 {
    public static void main(String[] args) throws IOException {
        //List<String> subjectList = YanZhaoWang.getSubjectList();
//        System.out.println("Subject List:");
//        for (String subject : subjectList) {
//            System.out.println(subject);
//        }
//        System.out.println(YanZhaoWang.getSubjectCode("(0101)哲学"));

        List<Major> lists = YanZhaoWang.getMajorList(11,"0873","北京大学");
        for (Major subject : lists) {
            System.out.println(subject);
        }
        System.out.println(YanZhaoWang.getSubjectCode("(0101)哲学"));
      }
}
